package com.zt.ztyh.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 *
 * @TableName ztyh-bankcards
 */
@TableName(value ="ztyhbankcards")
@Data
public class Bankcards implements Serializable {
    /**
     * 主键
     */
    @TableField(value = "id")
    @JsonSerialize
    private Long id;

    /**
     * 银行卡号
     */
    @TableField(value = "cardNumber")
    private String cardnumber;

    /**
     * 银行卡密码
     */
    @TableField(value = "payPassword")
    private String paypassword;

    /**
     * 余额
     */
    @TableField(value = "balance")
    private BigDecimal balance;

    /**
     * 类型外键
     */
    @TableField(value = "typeId")
    private Integer typeid;

    /**
     * 持卡人
     */
    @TableField(value = "realName")
    private String realname;

    /**
     * 1:男 2：女
     */
    @TableField(value = "sex")
    private Integer sex;
    @TableField(exist = false)
    private String bankName;

    /**
     * 身份证号
     */
    @TableField(value = "idCard")
    private String idcard;

    /**
     * 手机号
     */
    @TableField(value = "phone")
    private String phone;

    /**
     * 创建时间
     */
    @TableField(value = "createTime")
    private Date createtime;

    /**
     * 修改时间
     */
    @TableField(value = "updateTime")
    private Date updatetime;

    /**
     * 1：使用 2：销毁 3：挂失
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 冗余
     */
    @TableField(value = "level")
    private Integer level;
    /**
     * 冗余
     */
    @TableField(value = "zid")
    private Long zid;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
